package com.studio49.exmple.core.controller;

import com.studio49.exmple.core.entity.pub.JsonResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 
 * @author chensj
 * @date 2019年2月16日  上午11:52:11
 * @version 1.0
 */
public class BaseController {
	
	public static final Logger logger = LoggerFactory.getLogger(BaseController.class);

	
	public void setErrMsg(String msg, Logger log, JsonResult result, Throwable e) {
		logger.error(msg, e);
		result.setSuccess(false);
		result.setMsg(msg);
	}
	
}
